import request from '@/utils/request'

export function getEmployeeList(query) {
  return request({
    url: '/mechanism/employee/getList',
    method: 'post',
    data: query
  })
}

export function getEmployeeUsable(query) {
  return request({
    url: '/mechanism/employee/getAvailable',
    method: 'post',
    data: query
  })
}

export function getEmployeeDetail(id) {
  return request({
    url: '/mechanism/employee/getDetail',
    method: 'post',
    data: id
  })
}

export function saveEmployee(id) {
  return request({
    url: '/mechanism/employee/save',
    method: 'post',
    data: id
  })
}

export function removeEmployeeByID(id) {
  return request({
    url: '/mechanism/employee/remove',
    method: 'post',
    data: id
  })
}

export function changeEmployeeStatusByID(formdata) {
  return request({
    url: '/mechanism/employee/change-status',
    method: 'post',
    data: formdata
  })
}

